package com.agileboot.attendance.domain.settlement.enums;

import lombok.Getter;

/**
 * 审核类型枚举
 */
@Getter
public enum ApproveType {
    
    PARTY_B(1, "乙方审核"),
    PARTY_A(2, "甲方审核");

    private final int value;
    private final String label;

    ApproveType(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static ApproveType fromValue(int value) {
        for (ApproveType type : ApproveType.values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        throw new IllegalArgumentException("Invalid ApproveType value: " + value);
    }
} 